<?php

namespace App\Trip\Plane\Variflight;

use App\Trip\Plane\Requests\CommonQueryInterface;
use App\Trip\Plane\Requests\TraitFromToDateRequest;
use Illuminate\Http\Request;

class VariflightRequest implements CommonQueryInterface
{
    use TraitFromToDateRequest;

    private Request $req;

    public function __construct(Request $request)
    {
        $this->req = $request;
    }

    public function getFlightNo(): string
    {
        return $this->req->input('flight_no', '');
    }

    public function getCabin(): string
    {
        return $this->req->input('cabin_code', '');
    }
}